#ifndef WINDOWUTILS_H
#define WINDOWUTILS_H

#include <atlwin.h>

struct WindowDestroyer
{
	HWND m_hwnd;
	WindowDestroyer(HWND hwnd) : m_hwnd(hwnd) {}
	~WindowDestroyer()
	{
		if (m_hwnd)
			CWindow(m_hwnd).DestroyWindow();
	}
};

#endif
